package com.example.demo.one;

import com.example.demo.util.RabbitMQUtils;
import com.rabbitmq.client.Channel;

import java.io.IOException;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
public class DeleteExchange {

    public static void main(String[] args) throws IOException {
        Channel channel = RabbitMQUtils.getChannel();

        channel.exchangeDelete("amq.direct",true);
    }
}
